package cn.iocoder.yudao.module.social.controller.app.container.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Schema(description = "用户 APP - 容器创建 Request VO")
@Data
public class AppContainerCreateReqVO {

    @Schema(description = "容器类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "board")
    @NotBlank(message = "容器类型不能为空")
    @Size(max = 50, message = "容器类型长度不能超过50个字符")
    private String type;

    @Schema(description = "容器名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "我的技术分享")
    @NotBlank(message = "容器名称不能为空")
    @Size(max = 100, message = "容器名称长度不能超过100个字符")
    private String name;

    @Schema(description = "父容器编号", example = "1")
    private Long parentId;

    @Schema(description = "容器描述", example = "这是我创建的技术分享区")
    @Size(max = 500, message = "容器描述长度不能超过500个字符")
    private String description;

    @Schema(description = "排序", example = "1")
    private Integer sort;

    @Schema(description = "容器权限", example = "public", allowableValues = {"public", "private", "restricted", "readonly"})
    @Size(max = 20, message = "容器权限长度不能超过20个字符")
    private String permission;

}
